
package com.thinkgem.jeesite.dataInterface;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.thinkgem.jeesite.common.web.BaseController;
import com.thinkgem.jeesite.modules.acq.entity.fammer.AcqFarmer;
import com.thinkgem.jeesite.modules.acq.service.AcqAnalysisService;

/**
 * 分析统计
 * @author lj
 * @version 2018-3-20
 */
@Controller
@RequestMapping(value = "")
public class AnalysisController extends BaseController {
@Autowired AcqAnalysisService acqAnalysisService; 
	//生产情况分析统计
	@RequestMapping(value = "produceAnalysis")
	@ResponseBody
	public Map<String,Object> saveAreaInfo(AcqFarmer acqFarmer,HttpServletRequest request, HttpServletResponse response, String id) {
		Map<String,Object> result = new HashMap<String, Object>();
		result = acqAnalysisService.produceAnalysis(acqFarmer);
		return result;
	}
	
	//生产情况列表
		@RequestMapping(value = "produceAnalysisList")
		@ResponseBody
		public Map<String,Object> produceAnalysisList(String areaId,HttpServletRequest request, HttpServletResponse response, String id) {
			Map<String,Object> result = new HashMap<String, Object>();
			result = acqAnalysisService.produceAnalysisList(areaId);
			return result;
		}
		//生产情况列表
		@RequestMapping(value = "countTotal")
		@ResponseBody
		public Map<String,Object> countTotal(String areaId,HttpServletRequest request, HttpServletResponse response, String id) {
			Map<String,Object> result = new HashMap<String, Object>();
			result = acqAnalysisService.countTotal(areaId);
			return result;
		}
	
	
	
}
